import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/pages/home/HelloWorld'
import HomePage from '@/components/pages/home/HomePage'
import page404 from '@/components/pages/404/NotFound'
// import archives from '@/components/pages/archives/ArchivesPage'

Vue.use(Router)

export default new Router({
  routes: [
    {
		//首页
		path: '/',
		name: 'HomePage',
		component: HomePage
    },
	{
		//归档
		path:'/archives',
		name:'archives-page',
		component: HelloWorld
	},
	{
		//分类
		path:'/categories',
		name:'categories-page',
		component: HelloWorld
	},
	{
		//标签
		path:'/tags',
		name:'tags-page',
		component: HelloWorld
	},
	{
		//分享
		path:'/share',
		name:'share-page',
		component: HelloWorld
	},
	{
		//关于
		path:'/related',
		name:'related-page',
		component: HelloWorld
	}
	// ,
	// {
	// 	path:'/404',
	// 	name:'404',
	// 	component:page404,
	// },
	// {
	// 	path:'/*',
	// 	redirect:{ name:404}
	// }
  ]
})
